﻿using Domain.Types;
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Model
{
    public class TaskFieldInfo
    {
        /// <summary>
        /// 字段ID
        /// </summary>
        public Guid ID { get; set; } 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否必填
        /// </summary>
        public bool IsRequired { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string Text { get; set; }
        /// <summary>
        /// 输入最小长度
        /// </summary>
        public int MinLength { get; set; }
        /// <summary>
        /// 输入最大长度
        /// </summary>
        public int MaxLength { get; set; }
    }

    public class TaskStepFieldInfo
    {
        /// <summary>
        /// 字段ID
        /// </summary>
        public Guid ID { get; set; } = new Guid();
        /// <summary>
        /// 图文说明 = 0, 收集截图 = 1
        /// </summary>
        public TaskStepFieldType Type { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 文本
        /// </summary>
        public string Text { get; set; }
    }
}
